
<%@page import="com.core.utils.LocalizableString"%>
<%@page import="com.entities.projectitem.servicelayer.ProjectListLayer"%>
<%@page import="com.model.project.ProjectItem"%>
<%@page import="com.core.ui.controller.TabSheetController"%>
<%@page import="com.entities.projectitem.actionscript.ActionScriptParserBrowseProjects"%>
<%@page import="com.core.utils.GlobalConstants"%>
<%@page import="com.core.ui.controller.TabSheetController"%>
<%@page import="com.core.utils.StackItem"%>
<%@page import="com.core.ui.controller.StackNavigatorController"%>
<%@page import="com.core.managers.SessionManager"%>



<%@page import="java.util.List"%>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link type="text/css" rel="stylesheet" href="css/header.css">
<link type="text/css" rel="stylesheet" href="css/menu.css">
<link type="text/css" rel="stylesheet" href="css/maincontainer.css">
<link type="text/css" rel="stylesheet" href="css/navigator.css">
<link type="text/css" rel="stylesheet" href="css/tableview.css">
<link type="text/css" rel="stylesheet" href="css/detailsview.css">
<script type="text/javascript" src="js/jQuery/1.6.4/jquery.min.js"></script>
<link type="text/css" rel="stylesheet" href="css/actionbar.css">
<script type="text/javascript" src="js/EntityActions.js"></script>

<%@taglib prefix="sorokina" uri="/WEB-INF/Sorokina.tld"%>

</head>

<body>


    <%
    	SessionManager.setContext(GlobalConstants.USERCONTEXT_PROJECT);
    	//SessionManager.addContext(GlobalConstants.USERCONTEXT_PROJECTSLIST);

    	ActionScriptParserBrowseProjects actionScriptParser = new ActionScriptParserBrowseProjects();

    	TabSheetController tabSheetController = new TabSheetController();
    	tabSheetController.setAlign("horizontal");
    	tabSheetController.setActionScriptParser(actionScriptParser);

    	LocalizableString localizableString = LocalizableString.sharedInstance();
    	String pageCaption = localizableString.localizable("page.projectlist.caption");
    %>


    <jsp:useBean id="menuController" class="com.core.ui.controller.MenuController" scope="page" />


    <sorokina:PageTitleView />

    <sorokina:PageMenuView datasource="<%=menuController %>" />

    <sorokina:PageHeader pageCaption="<%=pageCaption%>" pageAvatar="img/entities/ProjectItemList.png" />

    <div class="maincontainer">
        <sorokina:TabSheetView datasource="<%=tabSheetController %>" />

        <div class="datacontainer" id="datacountainer">
            <jsp:include page="<%=tabSheetController.selectedJspNameInContext()%>"></jsp:include>
        </div>
    </div>
</body>
</html>